package lyx.totalexample.imagesearch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 图片存储表
 * </p>
 *
 * @author lyx
 * @since 2025-10-10
 */
@Getter
@Setter
@ToString
@TableName("image_save")
@Schema(name = "ImageSave对象", description = "图片存储表")
public class ImageSave implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Schema(name = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 图片名
     */
    @Schema(name = "imageName",title = "图片名")
    @TableField("image_name")
    private String imageName;

    /**
     * 图片地址
     */
    @TableField("image_url")
    @Schema(name = "imageUrl",title= "图片地址")
    private String imageUrl;
}
